package org.sun.basic.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="t_source")
public class Source {

	private String id;
	private String srcode;
	private String srcname;
	private String srcuri;
	private String remark;
	
	public Source() {
	}

	public Source(String id, String srcode, String srcname, String srcuri, String remark) {
		super();
		this.id = id;
		this.srcode = srcode;
		this.srcname = srcname;
		this.srcuri = srcuri;
		this.remark = remark;
	}

	@Id
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name="source_code")
	public String getSrcode() {
		return srcode;
	}

	public void setSrcode(String srcode) {
		this.srcode = srcode;
	}

	@Column(name="source_name")
	public String getSrcname() {
		return srcname;
	}

	public void setSrcname(String srcname) {
		this.srcname = srcname;
	}

	@Column(name="source_uri")
	public String getSrcuri() {
		return srcuri;
	}

	public void setSrcuri(String srcuri) {
		this.srcuri = srcuri;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Override
	public String toString() {
		return "Source [id=" + id + ", srcode=" + srcode + ", srcname=" + srcname + ", srcuri=" + srcuri + ", remark="
				+ remark + "]";
	}
	
	
}
